package com.shop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
@ApiModel(description="系统用户信息")
public class SysUser implements Serializable {
    private Integer id;
    @ApiModelProperty(value = "用户名")
    private String  userName;

    @ApiModelProperty(value = "用户密码")
    private String userPassword;

    @ApiModelProperty(hidden = true)
    private String salt;

    private  Integer state;

    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date updateDate;

    @ApiModelProperty(hidden = true)
    private List<SysRole> roles;


}
